import request from '@/utils/request'

// 查询岗位管理列表
export function listSpPost(query) {
	return request({
		url: '/spm/spPost/list',
		method: 'get',
		params: query
	})
}

// 查询岗位管理详细
export function getSpPost(postId) {
	return request({
		url: '/spm/spPost/' + postId,
		method: 'get'
	})
}

// 新增岗位管理
export function addSpPost(data) {
	return request({
		url: '/spm/spPost',
		method: 'post',
		data: data
	})
}

// 修改岗位管理
export function updateSpPost(data) {
	return request({
		url: '/spm/spPost',
		method: 'put',
		data: data
	})
}

// 删除岗位管理
export function delSpPost(postId) {
	return request({
		url: '/spm/spPost/' + postId,
		method: 'delete'
	})
}